package com.jensen.jpa.web;

import com.jensen.jpa.service.OrderTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by szhuang on 2015/7/14.
 */
@RestController
public class OrderController {
    @Autowired
    OrderTableService orderTableService;

    @RequestMapping("/")
    public Map findAll(){

        return this.orderTableService.getAll();
    }
}
